package com.ddpyjqtd.template.interfacetemplate;

/**
 * @Description: 做菜
 * 
 * @author: ddpyjqtd
 * @Date: 2019年3月12日
 *
 */
public class Cookie {

	private void buyFood() {
		System.out.println("....先买个菜。。。。");
	}

	private void washFood() {
		System.out.println("....再洗个菜。。。。");
	}

	private void cutUpFood() {
		System.out.println("....洗完了要切....");
	}

	private void dishOutFood() {
		System.out.println("...盛菜出桌。。。。。");
	}

	public void cookie(StirFry stirFry) {
		buyFood();
		washFood();
		cutUpFood();
		stirFry.stirFry();
		dishOutFood();
	}

}
